package com.gewu.advertisement.core

import com.gewu.advertisement.core.model.Advertising
import com.gewu.advertisement.core.model.PlayControl
import com.gewu.advertisement.core.service.AdvertisementService

/**
 * 广告观察者
 * @author htt 2021/1/8
 */
interface AdvertisementObserver {

    /**
     * 更新广告列表
     */
    fun updateAdvertisements(advertisements: List<Advertising>, adTypes: Array<out Advertising.Type>, newAdList: Boolean)

    /**
     * 播放控制
     */
    fun playControl(playControl: PlayControl)

    /**
     * 设置广告服务
     */
    fun setAdvertisementService(service: AdvertisementService?)
}